/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.restaurant.domain;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author root
 */
@Entity
@Table(name = "taxtype")
@XmlRootElement(name = "taxtype")
@NamedQueries({
    @NamedQuery(name = "Taxtype.findAll", query = "SELECT t FROM Taxtype t"),
    @NamedQuery(name = "Taxtype.findByTaxTypeID", query = "SELECT t FROM Taxtype t WHERE t.taxTypeID = :taxTypeID"),
    @NamedQuery(name = "Taxtype.findByTaxTypeName", query = "SELECT t FROM Taxtype t WHERE t.taxTypeName = :taxTypeName"),
    @NamedQuery(name = "Taxtype.findByIsdeleted", query = "SELECT t FROM Taxtype t WHERE t.isdeleted = :isdeleted")})
public class Taxtype implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "TaxTypeID")
    private Long taxTypeID;
    @Column(name = "TaxTypeName")
    private String taxTypeName;
    @Column(name = "isdeleted")
    private Boolean isdeleted;
    
    public Taxtype() {
    }

    public Taxtype(Long taxTypeID) {
        this.taxTypeID = taxTypeID;
    }

    public Long getTaxTypeID() {
        return taxTypeID;
    }

    public void setTaxTypeID(Long taxTypeID) {
        this.taxTypeID = taxTypeID;
    }

    public String getTaxTypeName() {
        return taxTypeName;
    }

    public void setTaxTypeName(String taxTypeName) {
        this.taxTypeName = taxTypeName;
    }

    public Boolean getIsdeleted() {
        return isdeleted;
    }

    public void setIsdeleted(Boolean isdeleted) {
        this.isdeleted = isdeleted;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (taxTypeID != null ? taxTypeID.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Taxtype)) {
            return false;
        }
        Taxtype other = (Taxtype) object;
        if ((this.taxTypeID == null && other.taxTypeID != null) || (this.taxTypeID != null && !this.taxTypeID.equals(other.taxTypeID))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.restaurant.domain.Taxtype[taxTypeID=" + taxTypeID + "]";
    }

}
